Skip to content

RDBC-909 - Returning class instances in client causes issues in Next.js — responses should be plain objects #481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 7, 2025

Conversation

M4xymm
Copy link
Member

@M4xymm M4xymm commented Jul 2, 2025

Introduce returnPlainJsObjects convention to optionally convert API results to plain objects. Update query methods to honor this setting by utilizing JsonSerializer.toPlainObject. Include support for environments requiring serializable results, such as Next.js.

Introduce `returnPlainJsObjects` convention to optionally convert API results to plain objects. Update query methods to honor this setting by utilizing `JsonSerializer.toPlainObject`. Include support for environments requiring serializable results, such as Next.js.
@M4xymm M4xymm requested a review from kalczur July 2, 2025 12:49
@M4xymm M4xymm requested a review from kalczur July 7, 2025 12:55
@M4xymm M4xymm merged commit d7bd8b3 into ravendb:v7.0 Jul 7, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants